import service from '@/utils/request'
// @Summary 用户登录
// @Produce  application/json
// @Param data body {username:"string",password:"string"}
// @Router /base/login [post]
  

// @Summary 用户注册
// @Produce  application/json
// @Param data body {username:"string",password:"string"}
// @Router /base/resige [post]
export const createArt = (data) => {
  return service({
    url: '/info/createArt',
    method: 'post',
    data: data
  })
}
 

// @Tags User
// @Summary 分页获取用户列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body modelInterface.PageInfo true "分页获取用户列表"
// @Success 200 {string} json "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /user/getArtsList [post]
export const getArtsList = (data) => { 
  return service({
    url: '/info/getArtsList',
    method: 'post',
    data: data
  })
}

 

// @Tags SysArts
// @Summary 删除用户
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.SetUserAuth true "删除用户"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"修改成功"}"
// @Router /user/deleteUser [delete]
export const deleteArt = (data) => {
  return service({
    url: '/info/deleteArt',
    method: 'delete',
    data: data
  })
}

// @Tags SysArts
// @Summary 设置用户信息
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.SysArts true "设置用户信息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"修改成功"}"
// @Router /user/setArtInfo [put]
export const setArtInfo = (data) => {
  return service({
    url: '/info/setArtsInfo',
    method: 'put',
    data: data
  })
}